adwaita: disable shadows when window is maximized or fullscreen
authorChristian Hergert <chergert@redhat.com>
Thu, 4 Feb 2021 00:15:02 +0000 (16:15 -0800)
committerChristian Hergert <chergert@redhat.com>
Tue, 9 Feb 2021 17:27:22 +0000 (09:27 -0800)
These shadows cause a significant draw performance drop for maximized
windows. Disabling them increases the chances we can have faster scroll
performance of text.

There is some risk here for systems where they have a dock and you expect
the shadow to draw beneath that dock for transparency reasons.

gtk/theme/Adwaita/_common.scss

index 5588e4fb40aae8e7219bd5298f809462201e66a9..e7c33f8d19297089cb9982320c4fe9012399e700 100644 (file)
@@ -4100,6 +4100,9 @@ window {
 
       &:backdrop { box-shadow: inset 0 0 0 3px $backdrop_bg_color, inset 0 1px $top_hilight; }
     }
+
+    &.maximized,
+    &.fullscreen { box-shadow: none; }
   }
 
   &.maximized,